package com.maybach.core.manager;

import com.maybach.util.query.support.PageResult;
import com.maybach.common.model.CommonEnumDO;
import com.maybach.common.query.CommonEnumQuery;

import java.util.List;


/**
 * Manager for CommonEnum.
 */
public interface CommonEnumManager {
    /**
     * query count by query condition.
     */
    int countByQuery(CommonEnumQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(CommonEnumQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(CommonEnumDO record);

    /**
     * insert selective.
     */
    long insertSelective(CommonEnumDO record);

    /**
     * select by query condition.
     */
    List<CommonEnumDO> selectByQuery(CommonEnumQuery query);


    /**
     * select by query condition with page.
     */
    PageResult<CommonEnumDO> selectByQueryWithPage(CommonEnumQuery query);

    /**
     * select by primary key.
     */
    CommonEnumDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective( CommonEnumDO record,  CommonEnumQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(CommonEnumDO record, CommonEnumQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(CommonEnumDO record);
}